package io.renren.common.enums;

import com.fasterxml.jackson.annotation.JsonValue;

/**
 *
 * @author sean
 * @since 2020-03-18
 *
 * 性别类型
 */
public enum GenderType implements IDictEnum<String> {

    /**
     * 男性
     */
    MALE("M", "男"),

    /**
     * 女性
     */
    FEMALE("F", "女");

    private String code;

    private String description;

    GenderType(String code, String description) {
        this.code = code;
        this.description = description;
    }

    @Override
    public String getType() {
        return "GENDER";
    }

    @Override
    public String getDescription() {
        return this.description;
    }

    @Override
    @JsonValue
    public String getValue() {
        return this.code;
    }


}
